/**
 * @author wangying
 * @date 20160303  10:49
 */
var jq=jQuery.noConflict();
var waterPlantCode;//水厂编码
var waterPlantName;
jQuery(document).ready(function()
{		
	window.setInterval("reinitlframe()",200);
	
	getWaterStationCode();	
});


function getWaterStationCode()
{	
	jq(".waterPlantMenu").click(function()
	{				
		waterPlantCode = jq(this).attr("id");
		waterPlantName = jq(this).text().trim();
		
		//alert("waterStationCode="+waterStationCode);
	 });

}

function reinitlframe()
{
	var iframe = document.getElementById("datarightIframe");
	//alert("ifrme"+iframe);
	try
	{
		var bHeight = iframe.contentWindow.document.body.scrollHeight;
		var dHeight = iframe.contentWindow.document.documentElement.scrollHeight;		
		var height = Math.max(bHeight,dHeight);
		iframe.height = height;
		return height;
	}catch(ex)
	{
	}
	//alert("iframe.height ="+iframe.height );
	
}
